<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <ui:composition>
            <h:form>
                <div class="phai">
                    <p>
                        Cập Nhật Thông Tin</p>
                    <ul id="service_form" class="p_form">
                        <li>
                            <span>Power</span>
                            <h:selectOneMenu id="somType1" value="#{userEmployeeRequest.etype}">  
                                <f:selectItems value="#{userEmployeeRequest.listTypeEmp()}" />  
                            </h:selectOneMenu>
                        </li>
                        <li>
                            <span>Department</span>
                            <h:selectOneMenu id="somType2" value="#{userEmployeeRequest.did}">  
                                <f:selectItems value="#{userEmployeeRequest.listDepartment()}" />  
                            </h:selectOneMenu>  
                        </li>
                    </ul>
                    <ul id="postform" class="p_form">
                        <li>
                            <h:inputHidden value="#{userEmployeeRequest.eid}"></h:inputHidden>
                        </li>
                        <li>
                            <span>User Name</span>
                            <h:inputText value="#{userEmployeeRequest.userName}" styleClass="p_f3"></h:inputText>
                        </li>
                        <li>
                            <span>Password</span>
                            <h:inputSecret value="#{userEmployeeRequest.password}" styleClass="p_f3"></h:inputSecret>
                        </li>
                        <li>
                            <span>Full Name</span>
                            <h:inputText value="#{userEmployeeRequest.fullName}" styleClass="p_f3"></h:inputText>
                        </li>
                        <li>
                            <span>Email</span>
                            <h:inputText value="#{userEmployeeRequest.email}" styleClass="p_f3"></h:inputText>
                        </li>
                        <li>
                            <span>Phone</span>
                            <h:inputText value="#{userEmployeeRequest.phone}" styleClass="p_f3"></h:inputText>
                        </li>
                        <li>
                            <span>Gender</span>
                            <h:inputText value="#{userEmployeeRequest.gender}" styleClass="p_f3"></h:inputText>
                        </li>
                        <li>
                            <span>Image</span>
                            <h:inputText value="#{userEmployeeRequest.image}" styleClass="p_f3"></h:inputText>
                        </li>
                        <li>
                            <span>Date Join</span>
                            <h:inputText value="#{userEmployeeRequest.dateJoin}" styleClass="p_f3"></h:inputText>
                        </li>
                        <li>
                            <span>Active</span>
                            <h:inputText value="#{userEmployeeRequest.active}" styleClass="p_f3"></h:inputText>
                        </li>
                        <li>
                            <h:commandButton value="Update" action="#{userEmployeeRequest.actionEmployee()}">
                                <f:param name="eID" value="#{userEmployeeRequest.eid}" />
                                <f:param name="action" value="2" />
                            </h:commandButton>
                        </li>
                        <li class="clearthis"></li>
                    </ul>
                </div>
            </h:form>
        </ui:composition>
    </h:body>
</html>

